package bg.btanev.eightyfour.shared.command.profile;

import bg.btanev.eightyfour.shared.command.CommandInput;
import bg.btanev.eightyfour.shared.dto.TargetDto;

/**
 *
 * @author B.Tanev
 *
 */
public class FindProfilesInput implements CommandInput {
	private TargetDto targetDto;

	public TargetDto getTargetDto() {
		return targetDto;
	}

	public void setTargetDto(TargetDto targetDto) {
		this.targetDto = targetDto;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((targetDto == null) ? 0 : targetDto.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		FindProfilesInput other = (FindProfilesInput) obj;
		if (targetDto == null) {
			if (other.targetDto != null)
				return false;
		} else if (!targetDto.equals(other.targetDto))
			return false;
		return true;
	}
}
